package xian.woniuxy.a_oop.up_transfer;

class Fu {
    public int a = 1;
    public void f1() {
        System.out.println("Fu.f1");
    }
}

class Zi extends Fu {
    public int a = 2;
    @Override
    public void f1() {
        System.out.println("Zi.f1");
    }
}

public class App {
    public static void main(String[] args) {
        Zi zi = new Zi();

        Fu fu = zi;

        System.out.println(fu == zi);

        System.out.println(fu.a);
        System.out.println(zi.a);

        fu.f1();
        zi.f1();

    }
}
